// 全局注册组件
import Vue from 'vue'
// 魔法注释勿删 ⬇️
/** plop import common compontent **/
import CqPopup from "@/components/common/CqPopup/index";
import Stepper from "@/components/common/Stepper/index";
import NoticeBars from '@/components/common/NoticeBars/index'
import gbLoading from '@/components/common/gbLoading/index'
import slotTest from '@/components/common/slotTest/index'
import lineChart from '@/components/common/lineChart/index'
import NavBar from '@/components/common/navbar/index'
import SwitchItem from '@/components/common/switchitem/index'
import ReverseCard from '@/components/common/reversecard/index'
import NavCard from '@/components/common/navcard/index'
import CutCard from '@/components/common/cutcard/index'
import SendCode from '@/components/common/sendcode/index'
import AccordionCard from '@/components/common/accordionCard/index'
import DownCard from '@/components/common/downCard/index'
import SliderCard from '@/components/common/sliderCard/index'
import CalendarCard from '@/components/common/calendar/index'
import CountUp from '@/components/common/countup/index'

const arrComponents = []
arrComponents.push(
  // 魔法注释勿删 ⬇️
  /** plop import common compontent name **/
CqPopup,
Stepper,
  NoticeBars,
  gbLoading,
  slotTest,
  lineChart,
  NavBar,
  SwitchItem,
  ReverseCard,
  NavCard,
  CutCard,
  SendCode,
  AccordionCard,
  DownCard,
  SliderCard,
  CalendarCard,
  CountUp
)

const components = {
  install: () => {
    for (let index = 0; index < arrComponents.length; index++) {
      const element = arrComponents[index]
      Vue.component(element.name, element)
    }
  }
}
Vue.use(components)
